package com.aviation.air1.config;

import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import javax.sql.DataSource;


/**
 * @Author: dsf
 * @Description:
 * @DateTime: 2025/5/12 10:26
 **/
@Configuration
public class DataSourceDebugConfig {

    @Bean
    public ApplicationRunner dataSourcePrinter(DataSource dataSource) {
        return args -> {
            System.out.println("🚀 当前 DataSource 类型是: " + dataSource.getClass().getName());
        };
    }
}
